<style type="text/css">

.multiple a {
    padding: 2px 5px;
    background: #5FB878;
    border-radius: 2px;
    color: #fff;
    display: block;
    line-height: 20px;
    height: 20px;
    margin: 10px 5px 2px 0;
    float: left;
}

.multiple2 a {
    padding: 2px 5px;
    background: #5FB878;
    border-radius: 2px;
    color: #fff;
    display: block;
    line-height: 20px;
    height: 20px;
    margin: 10px 5px 2px 0;
    float: left;
}

</style>
<form class="layui-form info-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id}">
	<div class="layui-form-item">
		<label class="layui-form-label">商品封面：</label>
		{:W('common/uploadImg',array(cover,$info['cover_url'],'90x90',封面))}
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品编号：</label>
			<div class="layui-input-inline">
				<input name="product_sn" id="product_sn" value="{$info.product_sn}" lay-verify="required" autocomplete="off" placeholder="请输入商品编号" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品名称：</label>
			<div class="layui-input-inline">
				<input name="name" id="name" value="{$info.name}" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品简称：</label>
			<div class="layui-input-inline">
				<input name="short_name" id="short_name" value="{$info.short_name}" lay-verify="required" placeholder="请输入商品简称" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品品牌：</label>
			<div class="layui-input-inline">
				{:W('common/singleSelect',array('brand_id|1|商品品牌|name|id',M("brand")->where(['status'=>1,'mark'=>1])->select(),$info['brand_id']))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品标签：</label>
			<div class="layui-input-inline">
				{:W('common/singleSelect',array('tags_id|1|商品标签|name|id',M("tags")->where(['status'=>1,'mark'=>1])->select(),$info['tags_id']))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商家编号：</label>
			<div class="layui-input-inline">
				<input name="business_sn" id="business_sn" value="{$info.business_sn}" lay-verify="required" placeholder="请输入商家商品编号" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品规格：</label>
			<div class="layui-input-inline">
				<input name="product_spec" id="product_spec" value="{$info.product_spec}" lay-verify="required" placeholder="请输入商品规格" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品型号：</label>
			<div class="layui-input-inline">
				<input name="product_model" id="product_model" value="{$info.product_model}" lay-verify="required" placeholder="请输入商品型号" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品描述：</label>
			<div class="layui-input-inline">
				<input name="product_desc" id="product_desc" value="{$info.product_desc}" lay-verify="required" placeholder="请输入商品描述" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品单价/元：</label>
			<div class="layui-input-inline">
				<input name="price" id="price" value="{$info.format_price}" lay-verify="required" placeholder="请输入商品单价(单位：元)" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品重量：</label>
			<div class="layui-input-inline">
				<input name="weight" id="weight" value="{$info.weight}" lay-verify="required" placeholder="请输入商品重量(单位：克)" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">计量单位：</label>
			<div class="layui-input-inline">
				<input name="unit" id="unit" value="{$info.unit}" lay-verify="required" placeholder="请输入商品计量单位" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">整体计量：</label>
			<div class="layui-input-inline">
				<input name="entirety_unit" id="entirety_unit" value="{$info.entirety_unit}" lay-verify="required" placeholder="请输入商品整理计量单位" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">计量数量：</label>
			<div class="layui-input-inline">
				<input name="entirety_num" id="entirety_num" value="{$info.entirety_num}" lay-verify="required" placeholder="请输入整体计量单位下的商品数量" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">库存总数：</label>
			<div class="layui-input-inline">
				<input name="stock_num" id="stock_num" value="{$info.stock_num}" lay-verify="required" placeholder="请输入商品库存总数" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">赠送积分：</label>
			<div class="layui-input-inline">
				<input name="give_points" id="give_points" value="{$info.give_points}" lay-verify="required" placeholder="请输入该商品赠送积分" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">是否上架：</label>
			<div class="layui-input-inline">
				{:W('common/switchCheck',array(is_sale,'上架|下架',$info['is_sale']))}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品分类：</label>
			<div class="layui-input-block">
				<!-- {:W('cate/multipleSelect',array('category_id|name|id',$info['category_id'],['parent_id'=>1]))} -->
				<button type="button" class="layui-btn" id="btnSelectCate"><i class="layui-icon">&#xe67c;</i>选择分类</button>
				<input name="category_id" id="category_id" type="hidden" value="{$info.category_id}">
				<div class="multiple" style="width:950px;">
				<volist name="info.category_list" id="vo">
					<a href="javascript:;"><span lay-value="{$vo.id}">{$vo.name}</span><i class="layui-icon" onclick="removeFrom(this);">ဆ</i></a>
				</volist>
				</div>
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品属性：</label>
			<div class="layui-input-block">
				<button type="button" class="layui-btn" id="btnSelectAttr"><i class="layui-icon">&#xe67c;</i>选择属性</button>
				<input name="attribute_id" id="attribute_id" type="hidden" value="{$info.attribute_id}">
				<div class="multiple2" style="width:950px;">
				<volist name="info.attribute_list" id="vo">
					<a href="javascript:;"><span lay-value="{$vo.category_attribute_value_id}">{$vo.attr_value}</span><i class="layui-icon" onclick="removeFrom2(this);">ဆ</i></a>
				</volist>
				</div>
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="width:950px;">
		<label class="layui-form-label">商品图集：</label>
		<div class="layui-input-block">
			{:W('common/uploadMultImg',array(image,$info['imageList'],商品图集,'100x100',9))}
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width:950px;">
		<label class="layui-form-label">商品简介：</label>
		<div class="layui-input-block">
			<textarea name="intro" id="intro" placeholder="请输入商品简介" class="layui-textarea">{$info.intro}</textarea>
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width:950px;">
		<label class="layui-form-label">备注：</label>
		<div class="layui-input-block">
			<textarea name="note" id="note" placeholder="请输入商品备注" class="layui-textarea">{$info.note}</textarea>
		</div>
	</div>
	<div class="layui-form-item" style="width:950px;">
		<label class="layui-form-label">商品详情：</label>
		<div class="layui-input-block">
			<textarea name="content" id="content" lay-verify="required" class="layui-textarea">{$info.content}</textarea>
			{:W('kindeditor/getEditor',array('default',content,'100%',400))}
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>